<!--内齿合齿轮齿面接触应力与传递误差分析-->
<template>
  <div class="sum" style="width: 100%;height: 100%;overflow-x:hidden;overflow-y:hidden">
    <a-row class="all" style="width: 100%;height: 100%;">
      <a-col class="left" :span="16" style="height: 100%;">
        <a-row class="left_top" style="height: 92%;">
          <a-row class="left_top_top" style="height: 82%;">
            <a-col class="left_top_top_l" :span="12" style="height: 100%;box-shadow: 1.5px 1.5px 2px #aaaaaa;">
              <a-row style="height: 4%;width: 100%;">
                <div class="" style="width: 100%;height: 100%;background-color: #f2f2f2;border-radius:4px">
                  <strong><label style="padding-left: 3%">几何参数输入</label></strong>
                </div>
              </a-row>
              <a-row class="top_smabiglun" style="height: 4%;width: 100%">
                <div style="margin-left: 53%">
                  <label style="">小轮</label>
                  <label style="margin-left: 22%">齿圈</label>
                </div>
              </a-row>
              <a-row class="top_l_input" style="height: 92%;width: 100%">
                <a-col class="top_l_l" :span="12" style="height: 100%">
                  <a-row style="height: 3.75%">模数（mm）</a-row>
                  <a-row style="height: 3.75%">螺旋角（°）</a-row>
                  <a-row style="height: 5%">
                    <div style="margin-top: 1%">齿轮螺旋角旋向 </div>
                  </a-row>

                  <a-row style="height: 3.75%">法向压力角（°）</a-row>
                  <a-row style="height: 3.75%">齿数</a-row>
                  <a-row style="height: 3.75%">法向变位系数</a-row>
                  <a-row style="height: 3.75%">工作中心距（mm）</a-row>
                  <a-row style="height: 3.75%">齿宽（mm）</a-row>
                  <a-row style="height: 3.75%">齿圈左端距小轮左端距离（mm）</a-row>
                  <a-row style="height: 3.75%">齿宽切片数量</a-row>
                  <a-row style="height: 3.75%">法向齿顶高系数</a-row>
                  <a-row style="height: 3.75%">法向顶隙系数</a-row>
                  <a-row style="height: 3.75%">齿顶导角高度（直径）（mm）</a-row>
                  <a-row style="height: 3.75%">小轮内径/齿圈外径（mm）</a-row>
                  <a-row style="height: 3.75%">辐板厚度（mm）</a-row>
                  <a-row style="height: 3.75%">轮缘厚度系数</a-row>
                  <a-row style="height: 3.75%">弹性模量（Mpa）</a-row>
                  <a-row style="height: 3.75%">泊松比</a-row>
                  <a-row style="height: 5%">
                    <div style="margin-top: 1%">误差输入形式 </div>
                  </a-row>
                  <a-row style="height: 3.75%">安装误差（um）</a-row>
                  <a-row style="height: 3.75%"><label v-if="input_Data.error_form==='1'">安装误差角度（°）</label></a-row>
                  <a-row style="height: 3.75%">制造误差（um）</a-row>
                  <a-row style="height: 3.75%"><label v-if="input_Data.error_form==='1'">制造误差角度（°）</label>
                  <label v-if="input_Data.error_form==='2'">单齿基节偏差（um）</label>
                  </a-row>
                  <a-row style="height: 11.25%;margin-top: 5%"><div ><label v-if="input_Data.error_form==='1'" >基节累计偏差（um）</label>
                  <label v-if="input_Data.error_form==='2'">基节累计总偏差（um）</label>
                  </div></a-row>
                </a-col>
                <a-col class="left_top_shurukuang" :span="12" style="height: 100%;">
                  <a-row style="height: 3.75%"><input type="text" style="height: 95%;margin-left: 2%;width: 50%;text-align: center" v-model="input_Data.m_n"/></a-row>
                  <a-row style="height: 3.75%"><input type="text" style="height: 95%;margin-left: 2%;width: 50%;text-align: center" v-model="input_Data.helix_angle"/></a-row>
                  <a-row style="height: 5%;margin-left: 2%">
                    <div style="margin-top: 1%">
                      <select style="width: 23%" v-model="input_Data.rotation_direction_planet">
                        <option value="1">左旋</option>
                        <option value="2">右旋</option>
                      </select>
                    </div>
                  </a-row>
                  <a-row style="height: 3.75%"><input type="text" style="height: 95%;margin-left: 2%;width: 50%;text-align: center" v-model="input_Data.a_n"/></a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.Zplanet"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.Zring"/>  </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.x_p"/></a-col>
                    <a-col :span="16" style="height: 100%;">
                      {{ result_Data.result2 }} </a-col>
                  </a-row>
                  <a-row style="height: 3.75%"><input type="text" style="height: 95%;margin-left: 2%;width: 50%;text-align: center" v-model="input_Data.work_center"/></a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.face_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.face_r"/> </a-col>
                  </a-row>
                  <a-row style="height: 3.75%"><input type="text" style="height: 95%;margin-left: 2%;width: 50%;text-align: center" v-model="input_Data.delta_face"/></a-row>
                  <a-row style="height: 3.75%"><input type="text" style="height: 95%;margin-left: 2%;width: 50%;text-align: center" v-model="input_Data.n_slice"/></a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.addendum_factor_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.addendum_factor_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.tip_factor_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.tip_factor_r"/> </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.d_chamfer_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.d_chamfer_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.d_inner_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.d_outer_r"/> </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.web_thickness_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.web_thickness_r"/> </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.SR_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.SR_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.E_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.E_r"/> </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center"  v-model="input_Data.v_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.v_r"/> </a-col>
                  </a-row>
                  <!--                                <a-row style="height: 3.75%"><input type="text" style="height: 95%;margin-left: 2%;width: 50%"/></a-row>
                  -->
                  <a-row style="height: 5%;margin-left: 2%">
                    <div style="margin-top: 1%">
                      <select style="width: 50.6%;text-align: center" v-model="input_Data.error_form">
                        <option value="1">定值</option>
                        <option value="2">随机</option>
                      </select>
                    </div>
                  </a-row>

                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.Ap"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.Ar" /> </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%"  >
                    <a-col :span="8" style="height: 100%;" v-if="input_Data.error_form==='1'"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.bAp"/></a-col>
                    <a-col :span="16" style="height: 100%;" v-if="input_Data.error_form==='1'"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.bAr" /> </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.pitcherror_planet"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.pitcherror_ring" /> </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"  v-if="input_Data.error_form==='1'">
                      <input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.bEp"/>
                    </a-col>
                    <a-col :span="8" style="height: 100%;"  v-if="input_Data.error_form==='2'">
                      <input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.pitch_error_single_p"/>
                    </a-col>
                    <a-col :span="16" style="height: 100%;" v-if="input_Data.error_form==='1'">
                      <input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.bEr" />
                    </a-col>
                    <a-col :span="16" style="height: 100%;" v-if="input_Data.error_form==='2'">
                      <input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.pitch_error_single_r" />
                    </a-col>
                  </a-row>
                  <!--                <a-row style="height: 11.5%">-->
                  <!--                <div style="height: 11.25%">-->
<!--                 ljj测试-->

                  <a-row style="height: 3.75%;margin-left: 2%" v-if="input_Data.error_form==='1'">
<!--                    <a-col :span="8" style="height: 100%;"><button style="height: 90%;width: 70%;font-size: 13px;text-align: center;margin-top: 2px"><label style="display: block;margin-top: -3px;font-size: 2px">导入</label></button></a-col>-->
<!--                    <a-col :span="16" style="height: 100%;"><button style="height: 90%;width: 35%;margin-left: -9%;font-size: 13px;text-align: center;margin-top: 2px"><label style="display: block;margin-top: -3px">导入</label></button> </a-col>-->
                    <a-col :span="8" style="height: 100%">
                      <a-upload :showUploadList="false" :maxCount="1" :customRequest="customRequest1" name="file">
                         <button style="height: 90%;width: 70%;font-size: 12px;text-align: left;margin-left: -2px" v-if="input_Data.error_form==='1'"><label style="height: 100%;width:30px;margin-left: -12px;display: block;text-align: center" >导入</label></button>
                      </a-upload>
                    </a-col>
                    <a-col :span="16" style="height: 100%;margin-left: -8px">
                      <a-upload :showUploadList="false" :maxCount="1" :customRequest="customRequest2" name="file">
                      <button style="height: 90%;width: 35%;font-size: 12px;text-align: left;margin-left: -4px" v-if="input_Data.error_form==='1'"><label style="height: 100%;width:30px;margin-left: -12px;display: block;text-align: center">导入</label></button>
                      </a-upload>
                    </a-col>
                  </a-row>
                  <a-row style="height: 3.75%;margin-left: 2%" v-if="input_Data.error_form==='1'">
                    <p>注：导入基节累计偏差文件格式为.xls或.xlsx(无需表头)</p>
<!--                    <a-col :span="8" style="height: 100%"><button style="height: 90%;width: 70%;font-size: 12px;text-align: left;margin-left: -2px" v-if="input_Data.error_form==='1'"><label style="height: 100%;width:30px;margin-left: -12px;display: block;text-align: center">删除</label></button></a-col>-->
<!--                    <a-col :span="16" style="height: 100%;margin-left: -8px"><button style="height: 90%;width: 35%;font-size: 12px;text-align: left;margin-left: -4px" v-if="input_Data.error_form==='1'"><label style="height: 100%;width:30px;margin-left: -12px;display: block;text-align: center">删除</label></button></a-col>-->
                  </a-row>

                  <a-row style="height: 7.5%;margin-left: 2%" v-if="input_Data.error_form==='2'">
                        <a-col :span="8" style="height: 100%;"><input type="text" style="height: 50%;width: 70%;text-align: center;display: block;margin-top: 14px"  v-model="input_Data.pitch_error_whole_p"/></a-col>
                        <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 50%;width: 35%;margin-left: -9%;text-align: center;display: block;margin-top: 14px" v-model="input_Data.pitch_error_whole_r"/> </a-col>
                  </a-row>
                </a-col>
              </a-row>
            </a-col>
            <a-col class="left_top_top_r" :span="12" style="height: 100%;box-shadow: 1.5px 1.5px 2px #aaaaaa;">
              <a-row style="height: 4%;width: 100%;">
                <div class="" style="width: 100%;height: 100%;background-color: #f2f2f2;border-radius:4px">
                  <strong><label style="padding-left: 3%">齿轮修行参数输入</label></strong>
                </div>
              </a-row>
              <a-row class="top_smabiglun" style="height: 4%;width: 100%">
                <div style="margin-left: 53%">
                  <label style="">小轮</label>
                  <label style="margin-left: 22%">齿圈</label>
                </div>
              </a-row>
              <a-row class="top_r_input" style="height: 92%;width: 100%">
                <a-col class="top_r_l" :span="12" style="height: 100%;">
                  <a-row style="width: 100%;height: 4.1%;">齿向修形左评价点位置(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿向修形右评价点位置(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿向整体抛物线修鼓量(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">左评价点齿向螺旋角修形量(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">右评价点齿向螺旋角修形量(mm)</a-row>
                  <a-row style="width: 100%;height: 6%;line-height: 30px">齿向左端/右端修行方式</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿向左端修形长度(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿向左端修形量(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿向右端修形长度(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿向右端修形量(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">啮合起始圆直径(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">有效齿顶圆直径(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿廓修形下评价点直径(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿廓修形上评价点直径(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿廓整体抛物线修鼓量(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">下评价点齿廓压力角修形量(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">上评价点齿廓压力角修形量(mm)</a-row>
                  <a-row style="width: 100%;height: 6%;line-height: 30px">齿廓齿根/齿顶修形方式</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿廓齿根修形起始圆直径(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿廓齿根修形量(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿廓齿顶修形起始圆直径(mm)</a-row>
                  <a-row style="width: 100%;height: 4.1%;">齿廓齿顶修形量(mm)</a-row>
                  <a-row style="width: 100%;height: 6%;line-height: 30px">齿面接触应力结果显示</a-row>
                </a-col>
                <a-col class="top_r_r" :span="12" style="height: 100%">
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.limit_lead_left_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.limit_lead_left_r"/> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.limit_lead_right_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.limit_lead_right_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.crown_whole_relief_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.crown_whole_relief_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.helix_relief_left_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.helix_relief_left_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.helix_relief_right_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.helix_relief_right_r" /> </a-col>
                  </a-row>
                  <!--                 <a-row style="width: 100%;height: 6%;line-height: 30px">齿向左端/右端修行方式</a-row>-->
                  <a-row style="height: 6%;margin-left: 2%;line-height: 25px">
                    <div style="margin-top: 1%">
                      <select style="width: 50.6%;text-align: center" v-model="input_Data.lead_relief_form">
                        <option value="1">抛物线</option>
                        <option value="2">直线</option>
                      </select>
                    </div>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.crown_double_length_left_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.crown_double_length_left_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.crown_double_relief_left_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.crown_double_relief_left_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.crown_double_length_right_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.crown_double_length_right_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.crown_double_relief_right_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.crown_double_relief_right_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;">{{result_Data.result3}}</a-col>
                    <a-col :span="16" style="height: 100%;">{{result_Data.result4}} </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;">{{result_Data.result5}}</a-col>
                    <a-col :span="16" style="height: 100%;">{{result_Data.result6}}</a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.limit_diameter_down_p"></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.limit_diameter_down_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.limit_diameter_up_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.limit_diameter_up_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.profile_whole_relief_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.profile_whole_relief_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.pressure_relief_down_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.pressure_relief_down_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.pressure_relief_up_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.pressure_relief_up_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 6%;margin-left: 2%;line-height: 25px">
                    <div style="margin-top: 1%">
                      <select style="width: 50.6%;text-align: center" v-model="input_Data.profile_relief_form">
                        <option value="1">抛物线</option>
                        <option value="2">直线</option>
                      </select>
                    </div>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.profile_length_down_p_diameter"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.profile_length_down_r_diameter" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.profile_relief_down_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.profile_relief_down_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.profile_length_up_p_diameter"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.profile_length_up_r_diameter" /> </a-col>
                  </a-row>
                  <a-row style="height: 4.1%;margin-left: 2%">
                    <a-col :span="8" style="height: 100%;"><input type="text" style="height: 95%;width: 70%;text-align: center" v-model="input_Data.profile_relief_up_p"/></a-col>
                    <a-col :span="16" style="height: 100%;"><input type="text"  style="height: 95%;width: 35%;margin-left: -9%;text-align: center" v-model="input_Data.profile_relief_up_r" /> </a-col>
                  </a-row>
                  <a-row style="height: 6%;margin-left: 2%;line-height: 25px">
                    <div style="margin-top: 1%">
                      <select style="width: 50.6%;text-align: center" v-model="input_Data.stress_show">
                        <option value="0">平面</option>
                        <option value="1">立体</option>
                      </select>
                    </div>
                  </a-row>
                </a-col>
              </a-row>

            </a-col>
          </a-row>
          <a-row class="left_top_foot" style="height: 18%;box-shadow: 1.5px 1.5px 2px #aaaaaa;">
            <a-row style="height: 15%;background-color: #f2f2f2"><label >其他输入参数</label></a-row>
            <a-row style="height: 85%">
              <a-col :span="8" style="height: 100%;">
                <a-col :span="12" style="height: 100%;text-align: right;">
                  <div style="margin-right: 8%;height: 100%">
                    <a-row style="height: 20%">使用系数</a-row>
                    <a-row style="height: 20%">动载系数</a-row>
                    <a-row style="height: 20%">齿间载荷分布系数</a-row>
                    <a-row style="height: 20%">小轮转速（rpm）</a-row>
                    <a-row style="height: 20%">小轮承受扭矩（N.mm）</a-row>
                  </div>
                </a-col>
                <a-col :span="12" style="height: 100%">
                  <a-row style="height: 20%"><input style="height: 95%;text-align: center" v-model="input_Data.K_A_internal"/></a-row>
                  <a-row style="height: 20%"><input style="height: 95%;text-align: center" v-model="input_Data.K_V"/></a-row>
                  <a-row style="height: 20%"><input style="height: 95%;text-align: center" v-model="input_Data.K_Ha"/></a-row>
                  <a-row style="height: 20%"><input style="height: 95%;text-align: center" v-model="input_Data.Wp"/></a-row>
                  <a-row style="height: 20%"><input style="height: 95%;text-align: center" v-model="input_Data.torque_input"/></a-row>
                </a-col>

              </a-col>
              <a-col :span="8" style="height: 100%">

                <a-col :span="10" style="height: 100%;text-align: right">
                  <a-row style="height: 33%"><label>输入齿轮</label></a-row>
                  <a-row style="height: 33%"><label>输入扭矩位置</label></a-row>
                  <a-row style="height: 34%"><label>输出形式</label></a-row>
                </a-col>

                <a-col :span="14" style="height: 100%">
                  <a-row style="height: 33%">
                    <select style="margin-left: 6%;text-align: center" v-model="input_Data.torque_input_gear">
                      <option value="1">小轮</option>
                      <option value="2">齿圈</option>
                    </select>
                  </a-row>
                  <a-row style="height: 33%">
                    <select style="margin-left: 6%;text-align: center" v-model="input_Data.torque_input_position_mid">
                      <option value="1">左旋</option>
                      <option value="2">右旋</option>
                    </select>
                  </a-row>
                  <a-row style="height: 33%">
                    <select style="margin-left: 6%;text-align: center" v-model="input_Data.input_output_side">
                      <option value="1">异侧</option>
                      <option value="2">同侧</option>
                    </select>
                  </a-row>
                </a-col>

              </a-col>
              <a-col :span="8" style="height: 100%;">
                <a-col :span="12" style="height: 100%;text-align: right;">
                  <div style="margin-right: 8%;height: 100%">
                    <a-row style="height: 20%">小轮初始啮合齿数</a-row>
                    <a-row style="height: 20%">齿圈初始啮合齿数</a-row>
                    <a-row style="height: 20%">小轮模拟圈数</a-row>
                    <a-row style="height: 20%">基节模拟网格数</a-row>
                    <a-row style="height: 20%">输出格式</a-row>
                  </div>
                </a-col>
                <a-col :span="12" style="height: 100%">
                  <a-row style="height: 20%"><input style="height: 95%;text-align: center" v-model="input_Data.start_number_p"/></a-row>
                  <a-row style="height: 20%"><input style="height: 95%;text-align: center" v-model="input_Data.start_number_r"/></a-row>
                  <a-row style="height: 20%"><input style="height: 95%;text-align: center" v-model="input_Data.N_planet"/></a-row>
                  <a-row style="height: 20%"><input style="height: 95%;text-align: center" v-model="input_Data.number"/></a-row>
                  <a-row style="height: 20%"><input style="height: 95%;text-align: center" v-model="input_Data.tolerance"/></a-row>
                </a-col>
              </a-col>
            </a-row>
          </a-row>
        </a-row>
<!--        <a-row class="left_foot" style="height: 10%;box-shadow: 1.5px 1.5px 2px #aaaaaa;">-->
<!--          <a-col :span="12" style="height: 100%">-->
<!--            <div style="height: 100%;width: 100%" class="l">-->
<!--              <a-row style="height: 15%;margin-left: -0.5%" v-html="' &nbsp;注：1、分析固定坐标系的X轴方向为水平向右，Y轴方向为垂直向下；'"></a-row>-->
<!--              <a-row style="height: 15%" v-html="'&nbsp;&nbsp;2、角度/转速均以X轴为基准顺时针计量；'"></a-row>-->
<!--              <a-row style="height: 20%"  v-html="' &nbsp;&nbsp;3、齿数以顺时针计数；'"></a-row>-->
<!--            </div>-->
<!--          </a-col>-->
<!--          <a-col :span="12" style="height: 100%">-->
<!--            <div  style="height: 100%;width: 100%" class="r">-->
<!--              <a-row style="height: 15%" v-html="' &nbsp;&nbsp;4、转速顺时针为正、逆时针为负；'"></a-row>-->
<!--              <a-row style="height: 15%" v-html="' &nbsp;&nbsp;5、啮合刚度的计算适应于直齿轮和螺旋角小于45度的齿轮。'"></a-row>-->
<!--              <a-row style="height: 20%" v-html="'&nbsp;&nbsp;6、有效齿轮指实际接触的齿宽'"></a-row>-->
<!--            </div>-->
<!--          </a-col>-->
<!--        </a-row>-->
      </a-col>
      <a-col class="right" :span="8" style="height: 100%">
        <a-row class="right_first" style="height: 14.3%;box-shadow: 1.5px 1.5px 2px #aaaaaa;">
          <a-row style="height: 20%;width: 100%;">
            <div class="" style="width: 100%;height: 100%;background-color: #f2f2f2;border-radius:4px">
              <strong><label style="padding-left: 3%">结果显示</label></strong>
            </div>
          </a-row>
          <a-row style="height: 40%;">
            <!--       <div><label></label></div>-->
            <a-col :span="12" style="text-align: right"> <div style="margin-top: 4%"><label style="margin-right: 5%">齿面最大接触应力（MPa）</label></div></a-col>
            <a-col :span="12"> <div style="margin-top: 4%">{{result_Data.result7}}</div></a-col>
          </a-row>
          <a-row style="height: 40%;">
            <a-col :span="12" style="text-align: right"> <div style="%"><label  style="margin-right: 5%">传递误差峰峰值（um）</label></div></a-col>
            <a-col :span="12"> <div>{{result_Data.result8}}</div></a-col>
          </a-row>
        </a-row>
        <a-row class="bt" style="height: 5%"><div style="height: 75%;margin-top: 1%"><button @click="jisuan" style="width: 18%;height:100%;background: #6DD400">计算</button></div></a-row>

        <a-row class="right_second" style="height: 21.4%;box-shadow: 1.5px 1.5px 2px #aaaaaa;">
          <a-row style="height: 14%;width: 100%;">
            <div class="" style="width: 100%;height: 100%;background-color: #f2f2f2;border-radius:4px">
              <strong><label style="padding-left: 3%">结果输出</label></strong>
            </div>
          </a-row>
          <div style="height: 86%;">
            <a-row style="height: 33%;">
              <!--       <div><label></label></div>-->
              <a-col :span="12" style="text-align: right"> <div style="margin-top: 8%"><label style="margin-right: 5%">单位齿宽啮合刚度(N/um.mm)</label></div></a-col>
              <a-col :span="12"> <div style="margin-top: 8%;">
                <label style="margin-left: 15%">
                  {{ result_Data.result1 }}</label></div></a-col>
            </a-row>
            <a-row style="height: 33%;">
              <!--       <div><label></label></div>-->
              <a-col :span="12" style="text-align: right"> <div style="margin-top: 4%"><label style="margin-right: 5%">显示小轮接触情况的最小齿数</label></div></a-col>
              <a-col :span="12"> <div><input style="height: 95%;margin-left: 15%;margin-top: 4% " v-model="this.show_gear_number_s_min" /></div></a-col>
            </a-row>
            <a-row style="height: 34%;">
              <a-col :span="12" style="text-align: right"> <div style="%"><label  style="margin-right: 5%">显示小轮接触情况的最小齿数</label></div></a-col>
              <a-col :span="12"> <div><input style="height: 95%;margin-left: 15%" v-model="this.show_gear_number_s_max" /></div></a-col>
            </a-row>
          </div>
        </a-row>
        <a-row class="right_third" style="height: 40.8%;margin-left: 15%;margin-top: 5%">
          <p>注：1、分析固定坐标系的X轴方向为水平向右，Y轴方向为垂直向下；</p>
          <p>2、角度/转速均以X轴为基准顺时针计量；</p>
          <p>3、齿数以顺时针计数；</p>
          <p>4、转速顺时针为正、逆时针为负；</p>
          <p>5、啮合刚度的计算适应于直齿轮和螺旋角小于45度的齿轮；</p>
          <p>6、有效齿轮指实际接触的齿宽。</p>
        </a-row>
        <a-row class="right_foot" style="height: 18.5%;">

        </a-row>
      </a-col>
    </a-row>
  </div>
</template>

<script>

import {transmisson_error_calculate_internal} from "@/api/file";
import {firedelete, firetext} from "../../../api/file";

export default {
name: "transmisson_error_calculate_internal",
  created() {
    document.title = '内啮合齿面接触应力、传递误差分析及优化'
    this.$store.state.file.key = 80
  },
  data(){
    return{
      show_gear_number_s_min:2,
      show_gear_number_s_max:3,
      result_Data: {//输出结果参数初始化
        result1:'text',
        result2:'text',
        result3:'text',
        result4:'text',
        result5:'text',
        result6:'text',
        result7:'Static Text',
        result8:'Static Text',
      },
      form2:{
        uuids:[]
      },
      input_Data: this.$store.state.file.dataList[80]
    }
  },
  mounted(){
    //绑定页面退出事件
    window.onbeforeunload= (e)=>{
      e = e || window.event;
      if (e) {
        e.returnValue = '关闭提示';
      }
      this.delete()//调用自己的方法
      // Chrome, Safari, Firefox 4+, Opera 12+ , IE 9+
      return '关闭提示';
    };
  },
  methods: {
    //删除载荷谱
    async delete(){
      this.form2.uuids=this.form2.uuids.toString();//将载荷谱文件数组转成字符串
      await firedelete(this.form2).then(res => {
        console.log(res);
      })
    },
    customRequest1(data)
    {
      const formData = new FormData()
      formData.append('fileName', data.file)
      firetext(formData)
          .then(res => {//这里需要用箭头函数，如果不用箭头函数里面的this就不是外面那个this
            console.log(res)
            this.pitch_error_whole_p=res.data.filedata;
            this.form2.uuids.push(res.data.uuid);
          })
          .catch(error => {
            console.log(error);
          });
    },
    customRequest2(data)
    {
      const formData = new FormData()
      formData.append('fileName', data.file)
      firetext(formData)
          .then(res => {//这里需要用箭头函数，如果不用箭头函数里面的this就不是外面那个this
            console.log(res)
            this.pitch_error_whole_r=res.data.filedata;
            this.form2.uuids.push(res.data.uuid);
          })
          .catch(error => {
            console.log(error);
          });
    },
   jisuan(){//计算函数
     transmisson_error_calculate_internal(this.input_Data)
     .then(res => {
       this.result_Data.result1=res[0];
       this.result_Data.result5=res[1];
       this.result_Data.result2=res[2];
       this.result_Data.result6=res[3];
       this.result_Data.result3=res[4];
       this.result_Data.result7=res[5];
       this.result_Data.result4=res[6];
       this.result_Data.result8=res[7];
       console.log(res)
       console.log(res[1])
       console.log(this.result_Data.result1)
     }).catch( err =>{
       this.$message.error(err);
     });
   }
  }
}
</script>

<style scoped>
.top_l_l {
  text-align: right;
}
.top_r_l {
  text-align: right;
}
.l_f {
  font-size: 11px;
}
</style>
